<?php

/**
 * Sistema form.
 *
 * @package    form
 * @subpackage Sistema
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class SistemaForm extends BaseSistemaForm
{
  public function configure()
  {
      parent::configure();

      unset($this['id_sistema']);

      $this->widgetSchema['ds_sobre']         = new sfWidgetFormTextareaTinyMCE(array(
                                                                                  'width'  => 700,
                                                                                  'height' => 200,
                                                                                  'config' => 'theme_advanced_disable: "anchor,image,cleanup,help"',
                                                                                ));

      $this->widgetSchema['ds_servico']         = new sfWidgetFormTextareaTinyMCE(array(
                                                                                  'width'  => 700,
                                                                                  'height' => 200,
                                                                                  'config' => 'theme_advanced_disable: "anchor,image,cleanup,help"',
                                                                                ));

      $this->widgetSchema['ds_termo_uso']         = new sfWidgetFormTextareaTinyMCE(array(
                                                                                  'width'  => 700,
                                                                                  'height' => 200,
                                                                                  'config' => 'theme_advanced_disable: "anchor,image,cleanup,help"',
                                                                                ));

      $this->widgetSchema['ds_como_comprar']         = new sfWidgetFormTextareaTinyMCE(array(
                                                                                  'width'  => 700,
                                                                                  'height' => 200,
                                                                                  'config' => 'theme_advanced_disable: "anchor,image,cleanup,help"',
                                                                                ));


      $this->widgetSchema['ds_endereco']         = new sfWidgetFormTextareaTinyMCE(array(
                                                                                  'width'  => 700,
                                                                                  'height' => 200,
                                                                                  'config' => 'theme_advanced_disable: "anchor,image,cleanup,help"',
                                                                                ));

      $this->widgetSchema->setLabels(array(
                                      'nm_sistema'          => 'Nome',
                                      'ds_sobre'            => 'Quem Somos',
                                      'ds_servico'          => 'Produtos e serviços',
                                      'ds_endereco'         => 'Endereço',
                                      'ds_twitter'          => 'Twitter',
                                      'ds_flickr'           => 'Flickr',
                                      'ds_maps'             => 'Google Maps',
                                      'ds_facebook'         => "Facebook",
                                      'ds_orkut'            => 'Orkut',
                                      'ds_you_tube'         => 'YouTube',
                                      'ds_termo_uso'        => 'Termos de Uso',
                                      'ds_como_comprar'     => 'Como Comprar'
                                    ));


      $this->validatorSchema->setOption('allow_extra_fields', true);
  }
}